﻿namespace CoreCms.Net.Identity.Authorization
{
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
    public class PermissionAuthorizeAttribute : Attribute, IPermissionAuthorizeData
    {
        public string Policy { get; set; }
        public string Roles { get; set; }
        public string AuthenticationSchemes { get; set; }
        //public string Groups { get; set; }
        //public string Permissions { get; set; }

        public PermissionAuthorizeAttribute()
        {
        }

        public PermissionAuthorizeAttribute(string policy)
        {
            Policy = policy;
        }
    }
}